package com.bfly.mall.wechat.enums;

/**
 * 公众号消息回复类型
 *
 * @author 长沙商脉科技有限公司
 * @date 2021/1/16 19:01
 */
public enum WeChatMpMsgReplyTypeEnum {
    SUBSCRIBE(1, "关注时回复"),
    NORMAL(2, "接收消息时回复"),
    KEYWORD(3, "关键字回复");
    private int id;
    private String type;

    WeChatMpMsgReplyTypeEnum(int id, String type) {
        this.id = id;
        this.type = type;
    }

    public static WeChatMpMsgReplyTypeEnum getType(int id) {
        for (WeChatMpMsgReplyTypeEnum status : WeChatMpMsgReplyTypeEnum.values()) {
            if (id == status.getId()) {
                return status;
            }
        }
        return null;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
